<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"/>
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="./resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <title>#{title_text}</title>

        <script type="text/css" >
            .templateFooter{
            text-color:sienna;
            text-align: center;
            tex-size:10;
            }
        </script>
    </h:head>
    <h:body>

        <div id="top">
            <!--<ui:insert name="top">Top</ui:insert>-->
            <h:graphicImage id="headerImage" value="./img/banner.jpg" />
            <div id="headertext">
                <h1>#{headText}</h1>
            </div>
        </div>
        <p></p>
        <div id="content" class="center_content">

            <ui:insert name="content">Content</ui:insert>

        </div>

        <div id="bottom">
            <h1 style="text-align:center;">#{page_title}</h1>
            <div class="templateFooter" id="footer">
                <h:form>
                    <h:outputText id="datetime" value="#{dateTimeSupportBean.currentDateTime}">
                        <!--<p:poll interval="1" update="datetime"/>-->
                    </h:outputText><br />
                    <h:commandButton value="Update" type="button">
                        <f:ajax event="click" render="datetime" execute="@all" />
                    </h:commandButton>
                    <h:form rendered="#{userSessionBean.loggedIn}">
                        <h:commandButton value="Log out" action="#{userSessionBean.setLoggedOut()}" />
                    </h:form>
                </h:form>  
            </div>
        </div>
    </h:body>

</html>
